import request from "@/utils/request.js"
export default {
    //根据courseId分页查询评论
    GetCommentList(current, pageSize, routeId){
        return request({
            url: `/route/comment/GetCommentList/${current}/${pageSize}`,
            method: 'get',
            params: {routeId}
        })
    },
    //添加评论
    addComment(comment){
        return request({
            url: `/route/comment/addComment`,
            method: 'post',
            data: comment
        })
    }
}